//-----------------------------------------------------------------------
// <copyright file="HarmonizedCommodityCodeService.cs" company="Pyramid Consulting">
//     Copyright (c) Pyramid Consulting. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------	

using System;
using System.Collections;
using MyFramework;
using MIMS.WRS.Entities;
using MIMS.WRS.Data;
    
namespace MIMS.WRS.Business
{
	/// <summary>
	/// Summary description for HarmonizedCommodityCodeService.
	/// </summary>
	public class HarmonizedCommodityCodeService
	{
		public HarmonizedCommodityCodeService()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public static HarmonizedCommodityCodeCollection GetHarmonizedCommodityCodes()
		{            
			try
			{
				HarmonizedCommodityCodeDAO harmonizedCommodityCodeDAO = new HarmonizedCommodityCodeDAO();
				return harmonizedCommodityCodeDAO.GetHarmonizedCommodityCodes();
			}
			catch (BusinessException)
			{
				throw;
			}
			catch (Exception ex)
			{
				// log this exception
				Logger.Error(ex);
				// wrap it and rethrow
				throw new BusinessException(SR.BusinessGetHarmonizedCommodityCodesException, ex);
			}
		}       
	}
}
